import java.util.Scanner;

public class test {
    public static void main7(String[] args) {
        int flag = 1;
        double sum = 0;
        for(int i = 1;i<=100;i++)
        {
             sum += flag*(1/i);
            flag  = -flag;
        }
        System.out.println(sum);
    }
    public static void main6(String[] args) {
        int i = 20;
        int j = 56;
        int c = i % j;
        while(c != 0){
            i = j;
            j = c;
            c = i % j;

        }
        System.out.println(j);


    }
    public static void main9(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while(scanner.hasNextInt()){
            int n = scanner.nextInt();
         for(int i = 0; i < n;i++ ){
         for(int j = 0; j < n;j++){
             if(i == j || i + j == (n -1)){
                 System.out.print("*");
             }else{
                 System.out.print(" ");
             }

         }
             System.out.println();
         }

        }

    }
    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println("请输入一个数；"+n);
        int i = 0;
        for(i = 2; i<=n;i++){
            if(n % i == 0 ) {
                System.out.println("这个数不是素数");
                break;
            }
            else{
            System.out.println("是素数");
            break;
            }
        }


    }
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
                int n = scanner.nextInt();
        int i = 0;
        int ret = n;
        while(ret != 0){
            ret /= 2;
            ret %= 2;
            i++;

        }
        System.out.println(i);



    }
    public static void main2(String[] args) { 
        int i = 0;
        for(i = 0; i < 100; i++) {
            int g = i % 10;
            int s = i / 10 ;
            i = s * 10 + g;
            if(s == 9 || g == 9)
                System.out.print(i+" ");
        }
    }
    public static void main5(String[] args) {

for(int i = 0;i<99999;i++) {
    int tmp = i;
    int count = 0;
    while (tmp != 0) {
        count++;
        tmp /= 10;
    }
    tmp = n;
    while (tmp != 0) {
        Math.pow(tmp % 10, count);
        tmp /= 10;
    }
    if (tmp == i) {
        System.out.println(i);
    }
}
//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        System.out.println("请输入数字:" + n);
//        for ( i = 100; i < n; i++) {
//            int g = i % 100 % 10;
//            int s = i / 10 % 10;
//            int b = i /100;
//            if(  i == g * g * g + s * s *s+ b * b * b) {
//                System.out.println(i);

        //   }

        //  }


        //}

}



